package com.wjc.train.business.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wjc.train.business.entity.ConfirmOrder;
import com.wjc.train.business.mapper.ConfirmOrderMapper;
import com.wjc.train.business.req.ConfirmOrderQueryReq;
import com.wjc.train.business.resp.ConfirmOrderQueryResp;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * <p>
 * 确认订单表 仓储类
 * </p>
 *
 * @author Guessed
 * @since 2023-08-15
 */
@Repository
public class ConfirmOrderRepository extends ServiceImpl<ConfirmOrderMapper, ConfirmOrder> implements IService<ConfirmOrder>  {

   public IPage<ConfirmOrderQueryResp> queryList(IPage<ConfirmOrderQueryResp> page, ConfirmOrderQueryReq confirmorderQueryReq) {
        return baseMapper.queryList(page,confirmorderQueryReq);
    }

    public int queryQueue(String trainCode, Date createTime) {
       return baseMapper.queryQueue(trainCode,createTime);
    }
}